import { post} from '@/request/http'
// import store from '@/store'

// 供应商账户管理
// 列表数据
export const SupplieManagList = (data) =>
  post(
    '/FTKJWLHYPT/base/selectSupplierUser',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            fltName:data.fltName,
            usrName:data.usrName
          }
        },
        Orderbys: {},
        PageIndexs: {
          FTKJWLHYPT: data.PageIndexs
        },
        PageSizes: {
          FTKJWLHYPT: data.PageSizes
        }
      }
    }
  )
  // 弹出框列表数据
export const SupplieManagListA = (data) =>
  post(
    '/FTKJWLHYPT/base/seletSysCompanyInfos',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            fltName:data.fltName,
            fltPorts:data.fltPorts
          }
        },
        Orderbys: {},
        PageIndexs: {
          FTKJWLHYPT: data.PageIndexs
        },
        PageSizes: {
          FTKJWLHYPT: data.PageSizes
        }
      }
    }
  )
  // 新增
export const addSupplieManag = (data) =>
  post(
    '/FTKJWLHYPT/base/addSupplierUser',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            fltName:data.fltName,
            usrEtpId:data.usrEtpId,
            usrName:data.usrName,
            usrCode:data.usrCode,
            usrCellphone:data.usrCellphone,
            usrEmail:data.usrEmail,
            usrStatus:data.usrStatus,
            usrRemark:data.usrRemark
          }
        },
      }
    }
  )
  // 编辑
export const editSupplieManag = (data) =>
  post(
    '/FTKJWLHYPT/base/updateSupplierUser',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            usrId:data.usrId,
            usrName:data.usrName,
            usrCode:data.usrCode,
            usrCellphone:data.usrCellphone,
            usrEmail:data.usrEmail,
            usrStatus:data.usrStatus,
            usrRemark:data.usrRemark
          }
        },
      }
    }
  )

// 删除
export const deleSupplieManag = (data) =>
  post(
    '/FTKJWLHYPT/base/deleteSupplierUser',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            usrId:data.usrId,
          }
        },
      }
    }
  )

// 重置密码
export const czSupplieManag = (data) =>
  post(
    '/FTKJWLHYPT/base/reSupplierUserPwd',
    {
      Data: {
        Parameters: {
          FTKJWLHYPT: {
            usrId:data.usrId,
            usrName:data.usrName,
          }
        },
      }
    }
  )
